package com.czkt.controller;

import com.czkt.note.IsUser;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("/hello")
    //注解实现权限认证
    @PreAuthorize("hasAuthority('用户菜单')")
//    @IsUser
    public Object hello(){
        return "hello";
    }
}
